package com.robot.mannge.common.entity.sys;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsNotNull;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.robot.mannge.common.entity.BaseSuperAutoPkDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: Smile
 * @Date: 2024/01/25/15:51
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_dept")
@TableComment("管理平台部门表")
public class SysDeptDO extends BaseSuperAutoPkDO<SysDeptDO> {

    @Column(comment = "部门名称，中文", length = 100, defaultValue = "")
    @IsNotNull
    private String deptName;

    @Column(comment = "手机号",length = 20,defaultValue = "")
    private String phone;

    @Column(comment = "地址",length = 50,defaultValue = "")
    private String address;

    @Column(comment = "所属部门id")
    @IsNotNull
    private Long parentId;

    @Column(comment = "所属部门名称",length = 100,defaultValue = "")
    @IsNotNull
    private String parentName;

    @Column(comment = "判断是否删除，0未删除，1已删除",defaultValue = "0",type = MySqlTypeConstant.TINYINT)
    private boolean isDelete;

    @Column(comment = "排序",type = MySqlTypeConstant.TINYINT)
    private int sort;
}
